﻿@model Janus.Mes.VO.WarehouseVO
@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "查看详情-仓库档案";
}
<div class="pageContent">
    <form method="post" action="BaseData/Warehouse/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    仓库编码：
                </label>

                @if (ViewBag.IsCreate == true)
                {
                    @Html.TextBoxFor(sysConfig => sysConfig.WhCode, new { @class = "required IsExisted", ajaxurl = "BaseData/Warehouse/IsExist" })
                }
                else
                {
                    @Html.TextBoxFor(sysConfig => sysConfig.WhCode, new { @Readonly = "true" })
                }
                @Html.ValidationMessageFor(sysConfig => sysConfig.WhCode)
            </p>
            <p>
                <label>
                    仓库名称：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.WhName, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.WhName)
            </p>
            <p>
                <label>
                    部门：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.DepCode, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.DepCode)
                @*<input id="inputOrg1" name="org1.orgNum" value="" type="hidden">
                <input class="required textInput" name="org1.orgName" type="text" postfield="keyword" suggestfields="orgNum,orgName," suggesturl="Quality/SampleProcess/Select" lookupgroup="org1" autocomplete="off">
                <a class="btnLook" rel="Select" href="BaseData/Warehouse/SelectDept" lookupgroup="org1">选择部门</a>*@
            </p>
            <p>
                <label>
                    负责人：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Person, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Person)
            </p>
            <p>
                <label>
                    联系电话：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Tel, new { @class = "required phone" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Tel)
            </p>
            <p>
                <label>
                    仓库地址：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Address, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Address)
            </p>
            <p>
                <label>默认仓库</label>
                @Html.CheckBoxFor(sysConfig => sysConfig.IsDefault, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.IsDefault)
            </p>
            <p>
                <label>
                    启用：
                </label>
                @Html.CheckBoxFor(c => c.IsEnable, new { @onclick = "return false" })
            </p>
            <p style="width:100%;height:50px">
                <label>
                    备注：
                </label>
                @Html.TextAreaFor(sysConfig => sysConfig.Remark, new { @style = "width:50%;height:30px" })
            </p>
            @Html.Partial("Operation", Model)
        </div>
        @Html.Partial("FormButtonBar")
    </form>
</div>
